//Main file 

#include <iostream>
#include <stdio.h>
#include "TesterUtility/TesterSwap.h"
#include "TesterSort/testerInsertionSort.h"
#include "TesterSort/testerMergeSort.h"
#include "TesterSort/testerQuickSort.h"
#include "TesterSort/testerHeapSort.h"

using namespace std;

int main( int argc, const char* argv[] )
{
	int testNo;

	cout << "MAIN ---  Beginning playlib\n\n";

	if (argc == 1)
	{
		cout << "usage: playlibTester X\n\n, where X is the the functionality number to be tested.";
		exit(1);

	}

	testNo = atoi(argv[1]);

	cout << "MAIN ---  The debug number received is: " << testNo << endl;








	switch (testNo)
	{
	case 1:
		testerSwap();
		break;
	case 2:
		testerInsertionSort();
		break;
	case 3:
		testerMergeSort();
		break;
	case 4:
		testerQuickSort();
		break;
	case 5:
		testerHeapSort();
		break;

	default:
		cout << "MAIN ---  Invalid teste number received: " << testNo << endl;
	}

}
